import { RenderRouter, asyncComponent } from 'nc-lightapp-front';
import ListPage from '../pages/list';

// const SearchPage = asyncComponent(() =>
//     import(
//         /*webpackChunkName: "erm/finance-process/expense-carry-forward/pages/search"*/
//         /*webpackMode: "eager"*/
//         '../pages/search'
//     )
// );
const CardPage = asyncComponent(() =>
    import(
        /*webpackChunkName: "erm/finance-process/expense-carry-forward/pages/card"*/
        /*webpackMode: "eager"*/
        '../pages/card'
    )
);

const routes = [
    {
        path: '/',
        component: ListPage,
        exact: true
    },
    {
        path: '/list',
        component: ListPage
    },
    {
        path: '/card',
        component: CardPage
    }
];

RenderRouter(routes, 'app');
